﻿<%@ Control Language="C#" AutoEventWireup="true" CodeBehind="AddContact.ascx.cs"
    Inherits="Team4Mock.UserControl.Contact.AddContact" %>
<style type="text/css">
    .style2
    {
        height: 29px;
    }
    .style3
    {
        height: 37px;
    }
    .style4
    {
        height: 35px;
    }
    .style5
    {
        height: 39px;
    }
    #txtBusID
    {
        width: 119px;
    }
</style>
<script type="text/javascript">
    function basicPopup() {
        popupWindow = window.open("/FormView/PopupContact.aspx", 'popUpWindow', 'height=500,width=800,left=300,top=100,resizable=No,scrollbars=No,toolbar=no,menubar=no,location=no,directories=no, status=No');
    }
    function confirmbtn() {
        alert("null rui");
    }
</script>
<fieldset style="width: 760px; margin-left: 10px;">
    <legend style="height: 25px; background-color: #465c71; -webkit-border-radius: 5px 5px 0px 0px;
        color: #dde4ec; font-size: 18px;">Contact Details</legend>
    <h2>
        Create New Contact</h2>
    <table width="765px" cellpadding="0px" cellspacing="0px" border="0" style="font-size: 15px;">
        <tr>
            <td class="style3">
                First Name <span style="color: Red;">(*)</span>
            </td>
            <td class="style3">
                <asp:TextBox ID="txtFirstName" runat="server" Width="186px"></asp:TextBox>
            </td>
            <td class="style3">
                Manager Name
            </td>
            <td class="style3">
                <input type="text" id="Name" />
                <input type="hidden" id="id" />
                &nbsp;&nbsp;<a href="#" onclick="basicPopup();return false;">Lookup</a>
                <asp:HiddenField ID="idContact" runat="server" />
                <asp:HiddenField ID="NameContact" runat="server" />
            </td>
        </tr>
        <tr>
            <td class="style4">
                Surname<span style="color: Red;">(*)</span>
            </td>
            <td class="style4">
                <asp:TextBox ID="txtSurname" runat="server" Width="186px"></asp:TextBox>
            </td>
            <td class="style4">
                Contact Type&nbsp; <span style="color: Red;">(*)</span>
            </td>
            <td class="style4">
                <asp:DropDownList ID="dlContactType" runat="server" Width="180px">
                </asp:DropDownList>
            </td>
        </tr>
        <tr>
            <td class="style5">
                Knows As
            </td>
            <td class="style5">
                <asp:TextBox ID="txtKnowsAs" Width="186px" runat="server"></asp:TextBox>
            </td>
            <td class="style5">
                Best Contact Method
            </td>
            <td class="style5">
                <asp:DropDownList ID="dlBestContactMethod" runat="server" Width="180px">
                </asp:DropDownList>
            </td>
        </tr>
        <tr>
            <td class="style5">
                Office Phone
            </td>
            <td class="style5">
                <asp:TextBox ID="txtOffPhone" runat="server" Width="186px"></asp:TextBox>
            </td>
            <td class="style5">
                Job Role
            </td>
            <td class="style5">
                <asp:TextBox ID="txtRole" runat="server" Width="186px"></asp:TextBox>
            </td>
        </tr>
        <tr>
            <td class="style4">
                Mobile Phone
            </td>
            <td class="style4">
                <asp:TextBox ID="txtMobPhone" runat="server" Width="186px"></asp:TextBox>
            </td>
            <td class="style4">
                Workbase
            </td>
            <td class="style4">
                <asp:TextBox ID="txtWorkbase" runat="server" Width="186px"></asp:TextBox>
            </td>
        </tr>
        <tr>
            <td class="style5">
                ST Home Phone
            </td>
            <td class="style5">
                <asp:TextBox ID="txtHomePhone" runat="server" Width="186px"></asp:TextBox>
            </td>
            <td class="style5">
                Job Title
            </td>
            <td class="style5">
                <asp:TextBox ID="txtJobTitle" runat="server" Width="186px"></asp:TextBox>
            </td>
        </tr>
        <tr>
            <td>
                Email Address
            </td>
            <td class="style2">
                <asp:TextBox ID="txtEmail" runat="server" Width="186px"></asp:TextBox>
            </td>
            <td>
                Is Active
            </td>
            <td>
                <asp:CheckBox ID="ckActive" runat="server" />
            </td>
        </tr>
    </table>
    <asp:Button ID="btnSave" runat="server" Text="Save" CssClass="button" OnClientClick="confirmbtn()" />
    <asp:Button ID="btnBack" runat="server" Text="Back" CssClass="button" OnClick="btnBack_Click" /><br />
    <asp:Label ID="lb" runat="server"></asp:Label>

</fieldset>
